package com.ujiuye.service;

import com.ujiuye.bean.AdminBean;
import com.ujiuye.dao.SystemDao;

public class SystemService {
    private SystemDao sd = new SystemDao();

    //登录验证方法
    public AdminBean login(String username, String password) {
        AdminBean admin = sd.login(username, password);
        return admin;
//        if(admin!=null){
//            return true;
//        }else {
//            return false;
//        }

    }
}
